package com.platform.service.impl;

import com.platform.dao.ApiStandingsTypeDao;
import com.platform.entity.ApiStandingsTypeEntity;
import com.platform.service.ApiStandingsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Service实现类
 *
 * @author ocean
 * @email 1141736487@qq.com
 * @date 2019-03-26 11:26:42
 */
@Service
public class ApiStandingsTypeServiceImpl implements ApiStandingsTypeService {
    @Autowired
    private ApiStandingsTypeDao standingsTypeDao;

    @Override
    public ApiStandingsTypeEntity queryObject(Integer id) {
        return standingsTypeDao.queryObject(id);
    }

    @Override
    public ApiStandingsTypeEntity queryByCodeAndUser(String code, Long createUser){
        return standingsTypeDao.queryByCodeAndUser(code,createUser);
    }

    @Override
    public List<ApiStandingsTypeEntity> queryList(Map<String, Object> map) {

        return standingsTypeDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return standingsTypeDao.queryTotal(map);
    }

    @Override
    public int save(ApiStandingsTypeEntity standingsType) {
        return standingsTypeDao.save(standingsType);
    }

    @Override
    public int update(ApiStandingsTypeEntity standingsType) {
        return standingsTypeDao.update(standingsType);
    }

    @Override
    public int delete(Integer id) {
        return standingsTypeDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return standingsTypeDao.deleteBatch(ids);
    }
}
